home *** CD-ROM | disk | FTP | other *** search
- break Tk_main
- run -new-colormap
- next
- graph display class
- print class
- next
- print Xdisplay
- next
- print STk_arg_colormap
- next
- run
- run -viusal staticgray
- next
- step
- next
- print STk_arg_visual
- cont
- run -visual staticgray
- next
- print STk_arg_visual
- next
- cont
- bt
- run
- ying
- 252 * the saved continuation.
- 253 */
- 254 STk_dumped_core = 0;
- 255 longjmp(*Top_jmp_buf, JMP_RESTORE);
- 256 }
- 257 else {
- 258 STk_print(x, STk_curr_oport, WRT_MODE);
- 259 Putc('\n', STk_stdout);
- 260 }
- 261 }
- 262 }
- 263
- 264 static void repl_driver(int argc, char **argv)
- 265 {
- 266 static int k;
- 267 static char **new_argv;
- 268
- 269 new_argv = STk_process_argc_argv(argc, argv);
- 270
- 271 if (STk_arg_image) {
- 272 STk_save_unix_args_and_environment(argc, argv);
- 273 STk_restore_image(STk_arg_image);
- 274 }
- 275 else {
- 276 /* Normal initialisation */
- 277 STk_reset_eval_stack();
- 278 }
- 279
- 280 /* Point where we come back on errors, image restoration, ... */
- 281 k = setjmp(*Top_jmp_buf);
- 282
- 283 Error_context = ERR_OK;
- 284 STk_sigint_counter = 0;
- 285 STk_control_C = 0;
- 286
- 287 switch (k) {
- 288 case 0: init_interpreter();
- 289 STk_initialize_scheme_args(new_argv);
- 290 load_init_file();
- 291 #ifdef USE_TK
- 292 # ifdef WIN32
- 293 if (!STk_arg_no_tk)
- 294 Tk_main(STk_arg_sync,
- 295 STk_arg_name,
- 296 STk_arg_file,
- 297 "localhost:0",
- 298 STk_arg_geometry);
- 299 # else
- 300 if (!STk_arg_Xdisplay)
- 301 STk_arg_Xdisplay = getenv("DISPLAY");
- 302 if (!STk_arg_no_tk && STk_arg_Xdisplay)
- 303 Tk_main(STk_arg_sync,
- 304 STk_arg_name,
- 305 STk_arg_file,
- 306 STk_arg_Xdisplay,
- 307 STk_arg_geometry);
- 308 # endif
- 309 #endif
- 310 finish_initialisation();
- 311 break;
- 312 case JMP_RESTORE: STk_restore_unix_args_and_environment(&argc, &argv);
- 313 /* Process another time args since we have lost them ! */
- 314 new_argv = STk_process_argc_argv(argc, argv);
- 315 STk_initialize_scheme_args(new_argv);
- 316 #ifdef USE_TK
- 317 if (!STk_arg_no_tk && (STk_arg_Xdisplay||getenv("DISPLAY")))
- 318 Tk_main(STk_arg_sync,
- 319 STk_arg_name,
- 320 STk_arg_file,
- 321 STk_arg_Xdisplay,
- 322 STk_arg_geometry);
- 323 #endif
- 324 finish_initialisation();
- 325 break;
- 326 case JMP_THROW:
- 327 case JMP_ERROR: break;
- 328 }
- 329
- 330 repl_loop();
- 331 if (STk_interactivep) fprintf(STk_stderr, "Bye.\n");
- 332 STk_quit_interpreter(UNBOUND);
- 333 }
- 334
- 335 /******************************************************************************
- 336 *
- 337 * Toplevel
- 338 *
- 339 ******************************************************************************/
- 340
- 341 void STk_toplevel(int argc, char **argv)
- 342 {
- 343 SCM stack_start; /* Unused variable. Its the first stack allocated variable */
- 344
- run -visual staticgray
- break Tk_main
- run -visual staticgray
- next
- step
- next
- break tkFrame.c:297
- cont
- print screenName
- next
- print className
- next
- print visualName
- next
- step
- graph display dictPtr
- next
- print visInfoList
- next
- print new
- next
-
-